package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Customer;
import cn.wolfcode.ssm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    int updateByPrimaryKey(Customer record);

    List<Customer> selectForList(QueryObject qo);

    Customer selectCheckTel(String tel);

    String selectTelById(Long id);

    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    void updateSeller(@Param("sellerId") Long sellerId, @Param("customerId") Long customerId);

    List<Customer> selectStatus();
}